home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / batch / tsbat36.zip / ZIPDATE.BAT < prev    next >
DOS Batch File  |  1991-07-09  |  909b  |  38 lines

  1. echo off
  2.  
  3. echo.
  4. echo ┌─────────────────────────────────────────────────────────────┐
  5. echo │ Datestamp a .zip package date to latest file                │
  6. echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, Tue 9-Jul-1991      │
  7. echo └─────────────────────────────────────────────────────────────┘
  8. echo.
  9. if not exist c:\tools\pkzip.exe goto _err1
  10. if not "%1"=="" goto _next
  11.  
  12. echo Usage ZIPDATE filename1.zip [filename2.zip] [...]
  13. echo.
  14. echo Wildcards are allowed.
  15. echo.
  16. echo Before using for the first time, adjust the paths as appropriate.
  17. echo If you do not have a ramdisk on r:\, also alter line pkzip -br:\ «-- ...
  18. goto _out
  19.  
  20. :_next
  21. if "%1"=="" goto _out
  22. if not exist %1 goto _err2
  23. for %%f in (%1) do pkzip -br:\ -o -d %%f notinzip.$$$
  24. dir %1
  25. shift
  26. goto _next
  27.  
  28. :_err1
  29. Echo File c:\tools\pkzip.exe not found
  30. goto _out
  31.  
  32. :_err2
  33. Echo File %1 not found
  34. goto _out
  35.  
  36. :_out
  37. echo on
  38.